<?php
if ($result) {
    $r = $result[0];
    $image = imageStyle($r->image, 316, 156);
    $url = url($r->calias.'/chi-tiet/'.$r->alias);
 ?>
<div class="giaitri_b1">
        <h2> Xem nhiều nhất trong tuần </h2>
        <div class="top"></div>
        <div class="ct">
              <div class="bignew">
            <h3> <a href="<?php echo $url ?>" title="<?php echo $r->title ?>"><?php echo $r->title ?></a></h3>
            <div class="img"> 
                <a href="<?php echo $url ?>" title="<?php echo $r->title ?>">
                    <img alt="<?php echo $r->title ?>" title="<?php echo $r->title ?>" src="<?php echo $image ?>" width="316" height="156" /> 
                </a>
            </div>
          </div>
              <div class="listnew">
            <ul>
            <?php 
            unset($result[0]);
            foreach ($result as $row) {
                $url = url($row->calias.'/chi-tiet/'.$row->alias);
            
             ?>
                  <li> <a href="<?php echo $url ?>"> <?php echo $row->title ?></a> </li>
            <?php 
            }
             ?>      
                </ul>
          </div>
            </div>
        <div class="bottom"></div>
</div>
<?php 
} ?>